Refactor streaming scan construction into StreamingScan static methods - #22889
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
Walkthrough
ChangesRank-aware StreamingScan refactor
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
TomAugspurger
left a comment
There was a problem hiding this comment.
There's one StreamingScan per IR::Scan in the logical plan
Is this new on this PR, or also the behavior on main?
This is behavior on main :) |
Co-authored-by: Tom Augspurger <tom.augspurger88@gmail.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@python/cudf_polars/cudf_polars/streaming/io.py`:
- Line 593: The `Self` type hint is used in the `for_split_files` method's
return type annotation but is not imported from `typing`, causing a `NameError`
at module import time. Add `Self` to the typing imports at the top of the file
(line 14). Additionally, there is an inconsistency in return type hints: the
`for_split_files` method uses `-> Self:` while the `for_fused_files` method uses
`-> StreamingScan:`. Update the `for_fused_files` method's return type
annotation to use `-> Self:` instead of `-> StreamingScan:` to maintain
consistency across both methods.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 36ba7600-9a6a-4f6e-826b-b74b73fd97a8
📒 Files selected for processing (1)
python/cudf_polars/cudf_polars/streaming/io.py
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. An unexpected error occurred while generating fixes: Not Found - https://docs.github.com/rest/git/refs#get-a-reference |
|
/merge |
Description
Small refactor that makes the logic easier to follow IMO. There's one
StreamingScanperIR::Scanin the logical plan. Each of which has a sequence of eitherSplitScans orFusedScans.Checklist